package com.lcx.security.service.impl;

import com.lcx.security.service.OutHandlerMethod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 默认任务消息输出处理
 */
public class DefaultOutHandlerMethod implements OutHandlerMethod {

	protected static Logger logger = LoggerFactory.getLogger(DefaultOutHandlerMethod.class);
	@Override
	public void parse(String type,String msg) {
		logger.info(type+"：完整消息："+msg);
		//过滤消息
//		if (msg.indexOf("[rtsp") != -1) {
//			logger.error(type + "发生网络异常丢包，消息体：" + msg);
//		}else if(msg.indexOf("frame=")!=-1){
//			logger.error(type + ":" + msg);
//		}
	}
}
